package com.heartware.sh.blackhole.entity.base;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/12/2 0002.
 */
public class BaseEntity implements Serializable{

//    {
//        "code": 210,
//            "error": "The username and password mismatch."
//    }

    private int code;
    private String error;


    public boolean isSuccess(){
        if(code == 0){
            return true;
        }

        return false;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }
}
